import Placeholder from './Placeholder.vue'
import {
  Layout,
  Wrapper,
  Heading,
  InputMoney,
  Img,
  Avatar,
  ImgMatch,
  Cellbox,
  CellItem,
  Preview,
  PreviewBox,
  Text
} from 'e-ui/lib/global'

const components = [
  Layout,
  Wrapper,
  Heading,
  InputMoney,
  Img,
  Avatar,
  ImgMatch,
  Cellbox,
  CellItem,
  Preview,
  PreviewBox,
  Placeholder,
  Text
]

const install = function (Vue, opts = {}) {
  for (let item of components) {
    item && item.componentName && Vue.component(item.componentName, item)
  }
}

export {
  install,
  Layout,
  Wrapper,
  Heading,
  InputMoney,
  Img,
  Avatar,
  ImgMatch,
  Cellbox,
  CellItem,
  Preview,
  PreviewBox,
  Placeholder,
  Text
}
